package com.beamfield.dao.sys;

import com.beamfield.model.ProjectProduct;
import com.beamfield.model.ProjectProductExample;
import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

public interface ProjectProductMapper {
	int deleteByPrimaryKey(String project_product_id);

	int insert(ProjectProduct record);

	int insertSelective(ProjectProduct record);

	List<ProjectProduct> selectByExample(ProjectProductExample example);

	ProjectProduct selectByPrimaryKey(String project_product_id);

	int updateByPrimaryKeySelective(ProjectProduct record);

	int updateByPrimaryKey(ProjectProduct record);

	@Delete("delete from  t_project_product where project_id =#{0} and beam_id = #{1}")
	int deleteByProjectId(Long pid, Long beamId);

	List<ProjectProduct> selectByProjectId(@Param("projectId") Long project_id,@Param("beamId") Long beamid);

    ProjectProduct selectByProductId(@Param("pid") String pid);
}
